﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="index1.aspx.cs" Inherits="AnyOffice.general.meeting.apply.index1" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>会议申请</title>
		
		<meta name="CODE_LANGUAGE" Content="C#">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
		<script>
		function open_meeting(meeting_id)
		{
//			URL="meeting_detail.aspx?meeting_id=" + meeting_id;
//			myleft=(screen.availWidth-500)/2;
//			window.open(URL,"read_notify","height=400,width=550,status=1,toolbar=no,menubar=no,location=no,scrollbars=yes,top=150,left="+myleft+",resizable=yes");


			var mwidth = "600";
			var mheight = "450";
			var loc_x = parseInt((window.screen.width - mwidth) / 2);
			var loc_y = parseInt((window.screen.height - mwidth) / 2);

			var _oParameter = new Object();
			_oParameter.dialogTitle = "会议申请";
			_oParameter.openFile = "meeting_detail.aspx?meeting_id=" + meeting_id+ "&num=" + Math.random();

			window.showModalDialog('shDialog.htm', _oParameter, 'dialogHeight:' + mheight + 'px;dialogWidth:' + mwidth + 'px;dialogLeft:' + loc_x + ';dialogTop:' + loc_y + ';help:no;status:no;scroll:yes;titlebar:no;toolbar:no');
  
        
        }
		function delete_meeting(meeting_id)
		{
			msg='确认要删除该会议么？';
			if(window.confirm(msg))
			{
				URL="delete.aspx?meeting_id=" + meeting_id;
				window.location=URL;
			}
		}
		</script>
	</HEAD>
	<body class="bodycolor" topMargin="5">
		<form id="Form1" method="post" runat="server">
         <div class="main_div">
			<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
				<tr>
					<td class="Big"><img src="/images/notify_new.gif" align="absMiddle"><span class="big3"> 
							申请会议</span>
					</td>
				</tr>
			</table>
			<div align="center">
				<input type="button" value="申请会议" class="BigButton" onClick="location='new.aspx';" title="申请会议">
			</div>
			<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
				<tr>
					<td class="Big"><img src="/images/menu/meeting.gif" height="24" width="24"><span class="big3">
							待批会议</span>
					</td>
				</tr>
			</table>
			<asp:Repeater id="rptMeeting0" runat="server">
				<HeaderTemplate>
					<table width="95%" cellSpacing="0" cellPadding="0" border="0" class="tab_pub" align="center">
						<tr class="TableHeader">
							<td noWrap align="center">名称</td>
							<td noWrap align="center">主题</td>							
							<td noWrap align="center">开始时间</td>
							<td noWrap align="center">结束时间</td>
							<td noWrap align="center">会议室</td>
							<td noWrap align="center">操作</td>
						</tr>
				</HeaderTemplate>
				<ItemTemplate>
					<tr class="TableLine1">
						<td noWrap align="center"><%#Eval("Name")%></td>
						<td noWrap align="center"><%#Eval("Topic")%></td>						
						<td noWrap align="center"><%#Eval("StartTime")%></td>
						<td noWrap align="center"><%#Eval("EndTime")%></td>
						<td noWrap align="center"><%#Eval("RoomName")%></td>
						<td noWrap align="center">
							<a href="javascript:open_meeting('<%#Eval("MeetingId")%>');">详细信息</a>
							<a href="edit.aspx?meeting_id=<%#Eval("MeetingId")%>">修改</a>
							<a href="javascript:delete_meeting('<%#Eval("MeetingId")%>');">删除</a>
						</td>
					</tr>
				</ItemTemplate>	
				<AlternatingItemTemplate>
					<tr class="TableLine2">
						<td noWrap align="center"><%#Eval("Name")%></td>
						<td noWrap align="center"><%#Eval("Topic")%></td>						
						<td noWrap align="center"><%#Eval("StartTime")%></td>
						<td noWrap align="center"><%#Eval("EndTime")%></td>
						<td noWrap align="center"><%#Eval("RoomName")%></td>
						<td noWrap align="center">
							<a href="javascript:open_meeting('<%#Eval("MeetingId")%>');">详细信息</a>
							<a href="edit.aspx?meeting_id=<%#Eval("MeetingId")%>">修改</a>
							<a href="javascript:delete_meeting('<%#Eval("MeetingId")%>');">删除</a>
						</td>
					</tr>				
				</AlternatingItemTemplate>							
				<FooterTemplate>
					</table>
					<br>
				</FooterTemplate>
			</asp:Repeater>
			<asp:Literal id="litMessage0" runat="server"></asp:Literal>
			<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
				<tr>
					<td class="Big"><img src="/images/menu/meeting.gif" height="24" width="24"><span class="big3">
							已准会议</span>
					</td>
				</tr>
			</table>
			<asp:Repeater id="rptMeeting1" runat="server">
			<HeaderTemplate>
					<table width="95%" cellSpacing="0" cellPadding="0" border="0" class="tab_pub" align="center">
						<tr class="TableHeader">
							<td noWrap align="center">名称</td>
							<td noWrap align="center">主题</td>							
							<td noWrap align="center">开始时间</td>
							<td noWrap align="center">结束时间</td>
							<td noWrap align="center">会议室</td>
							<td noWrap align="center">操作</td>
						</tr>
				</HeaderTemplate>
				<ItemTemplate>
					<tr class="TableLine1">
						<td noWrap align="center"><%#Eval("Name")%></td>
						<td noWrap align="center"><%#Eval("Topic")%></td>						
						<td noWrap align="center"><%#Eval("StartTime")%></td>
						<td noWrap align="center"><%#Eval("EndTime")%></td>
						<td noWrap align="center"><%#Eval("RoomName")%></td>
						<td noWrap align="center">
							<a href="javascript:open_meeting('<%#Eval("MeetingId")%>');">详细信息</a>
						</td>
					</tr>
				</ItemTemplate>	
				<AlternatingItemTemplate>
					<tr class="TableLine2">
						<td noWrap align="center"><%#Eval("Name")%></td>
						<td noWrap align="center"><%#Eval("Topic")%></td>						
						<td noWrap align="center"><%#Eval("StartTime")%></td>
						<td noWrap align="center"><%#Eval("EndTime")%></td>
						<td noWrap align="center"><%#Eval("RoomName")%></td>
						<td noWrap align="center">
							<a href="javascript:open_meeting('<%#Eval("MeetingId")%>');">详细信息</a>
						</td>
					</tr>				
				</AlternatingItemTemplate>
				<FooterTemplate>
					</table>
					<br>
				</FooterTemplate>
				</asp:Repeater>
			<asp:Literal id="litMessage1" runat="server"></asp:Literal>
			<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
				<tr>
					<td class="Big"><img src="/images/menu/meeting.gif" height="24" width="24"><span class="big3">
							进行中会议</span>
					</td>
				</tr>
			</table>
			<asp:Repeater id="rptMeetingNow" runat="server">
			<HeaderTemplate>
					<table width="95%" cellSpacing="0" cellPadding="0" border="0" class="tab_pub" align="center">
						<tr class="TableHeader">
							<td noWrap align="center">名称</td>
							<td noWrap align="center">主题</td>							
							<td noWrap align="center">开始时间</td>
							<td noWrap align="center">结束时间</td>
							<td noWrap align="center">会议室</td>
							<td noWrap align="center">操作</td>
						</tr>
				</HeaderTemplate>
					<ItemTemplate>
					<tr class="TableLine1">
						<td noWrap align="center"><%#Eval("Name")%></td>
						<td noWrap align="center"><%#Eval("Topic")%></td>						
						<td noWrap align="center"><%#Eval("StartTime")%></td>
						<td noWrap align="center"><%#Eval("EndTime")%></td>
						<td noWrap align="center"><%#Eval("RoomName")%></td>
						<td noWrap align="center">
							<a href="javascript:open_meeting('<%#Eval("MeetingId")%>');">详细信息</a>
						</td>
					</tr>
				</ItemTemplate>	
				<AlternatingItemTemplate>
					<tr class="TableLine2">
						<td noWrap align="center"><%#Eval("Name")%></td>
						<td noWrap align="center"><%#Eval("Topic")%></td>						
						<td noWrap align="center"><%#Eval("StartTime")%></td>
						<td noWrap align="center"><%#Eval("EndTime")%></td>
						<td noWrap align="center"><%#Eval("RoomName")%></td>
						<td noWrap align="center">
							<a href="javascript:open_meeting('<%#Eval("MeetingId")%>');">详细信息</a>
						</td>
					</tr>				
				</AlternatingItemTemplate>
				<FooterTemplate>
					</table>
					<br>
				</FooterTemplate>
				</asp:Repeater>
			<asp:Literal id="litMessageNow" runat="server"></asp:Literal>
			<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
				<tr>
					<td class="Big"><img src="/images/menu/meeting.gif" height="24" width="24"><span class="big3">
							未准会议</span>
					</td>
				</tr>
			</table>
			<asp:Repeater id="rptMeeting2" runat="server">
			<HeaderTemplate>
					<table width="95%" cellSpacing="0" cellPadding="0" border="0" class="tab_pub" align="center">
						<tr class="TableHeader">
							<td noWrap align="center">名称</td>
							<td noWrap align="center">主题</td>						
							<td noWrap align="center">开始时间</td>
							<td noWrap align="center">结束时间</td>
							<td noWrap align="center">会议室</td>
							<td noWrap align="center">操作</td>
						</tr>
				</HeaderTemplate>
					<ItemTemplate>
					<tr class="TableLine1">
						<td noWrap align="center"><%#Eval("Name")%></td>
						<td noWrap align="center"><%#Eval("Topic")%></td>						
						<td noWrap align="center"><%#Eval("StartTime")%></td>
						<td noWrap align="center"><%#Eval("EndTime")%></td>
						<td noWrap align="center"><%#Eval("RoomName")%></td>
						<td noWrap align="center">
							<a href="javascript:open_meeting('<%#Eval("MeetingId")%>');">详细信息</a>
							<a href="edit.aspx?meeting_id=<%#Eval("MeetingId")%>">修改</a>
							<a href="javascript:delete_meeting('<%#Eval("MeetingId")%>');">删除</a>
						</td>
					</tr>
				</ItemTemplate>	
				<AlternatingItemTemplate>
					<tr class="TableLine2">
						<td noWrap align="center"><%#Eval("Name")%></td>
						<td noWrap align="center"><%#Eval("Topic")%></td>						
						<td noWrap align="center"><%#Eval("StartTime")%></td>
						<td noWrap align="center"><%#Eval("EndTime")%></td>
						<td noWrap align="center"><%#Eval("RoomName")%></td>
						<td noWrap align="center">
							<a href="javascript:open_meeting('<%#Eval("MeetingId")%>');">详细信息</a>
							<a href="edit.aspx?meeting_id=<%#Eval("MeetingId")%>">修改</a>
							<a href="javascript:delete_meeting('<%#Eval("MeetingId")%>');">删除</a>
						</td>
					</tr>				
				</AlternatingItemTemplate>
				<FooterTemplate>
					</table>
					<br>
				</FooterTemplate>
				</asp:Repeater>
			<asp:Literal id="litMessage2" runat="server"></asp:Literal>
            </div>
		</form>
	</body>
</HTML>
